package com.mianle.userapi.service.task03;


import java.util.Date;

public class DynamicTaskRunable implements Runnable {
    private Integer taskId;

    public DynamicTaskRunable(Integer taskId) {
        this.taskId = taskId;
    }
    @Override
    public void run() {
        System.out.println("DynamicTaskRunable is running, taskId："+taskId + " 时间："+new Date());
    }

    public Integer getTaskId() {
        return taskId;
    }
}
